import nodejs from '@feidao/web/atom/browser/msg/nodejs';
import alert from '@feidao/web/atom/browser/msgbox/alert';
import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import get_lang from '../../atom-web/get-lang';
import { send_msg } from '../../atom-web/config';
import get_i18n from '../i18n/get';

export default async function a004(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const lang = get_lang(fd);
	const result = await nodejs<string>(send_msg, `web/page/s001`, { lang, param: 'abc' }, true, false);
	const i18n = get_i18n(fd);
	alert(result, i18n.l000002, i18n.l000004);
	window.console.info('bbbbbbbbbb', result);
}
